package com.study.factory.original;

import java.util.HashMap;
import java.util.Map;

public class OriginalFactory {

    Map<String, OriginalDemo> stringOriginalDemoMap;

    public OriginalFactory() {
        stringOriginalDemoMap = new HashMap<String, OriginalDemo>();
        stringOriginalDemoMap.put("test", new OriginalDemo("testsetsestsetse"));
    }


    public OriginalDemo getObject(String key) {

        return stringOriginalDemoMap.get(key);

    }

}
